function n(e, t) {
    var n = (65535 & e) + (65535 & t)
      , a = (e >> 16) + (t >> 16) + (n >> 16);
    return a << 16 | 65535 & n
};
function a(e, t) {
    return e << t | e >>> 32 - t
};
function o(e, t, o, i, r, s) {
    return n(a(n(n(t, e), n(i, s)), r), o)
};
function i(e, t, n, a, i, r, s) {
    return o(t & n | ~t & a, e, t, i, r, s)
};
function r(e, t, n, a, i, r, s) {
    return o(t & a | n & ~a, e, t, i, r, s)
};
function s(e, t, n, a, i, r, s) {
    return o(t ^ n ^ a, e, t, i, r, s)
};
function c(e, t, n, a, i, r, s) {
    return o(n ^ (t | ~a), e, t, i, r, s)
};
function l(e) {
    for (var t = 1732584193, a = -271733879, o = -1732584194, l = 271733878, u = 0; u < e.length; u += 16) {
        var d = t
          , p = a
          , A = o
          , m = l;
        t = i(t, a, o, l, e[u + 0], 7, -680876936),
        l = i(l, t, a, o, e[u + 1], 12, -389564586),
        o = i(o, l, t, a, e[u + 2], 17, 606105819),
        a = i(a, o, l, t, e[u + 3], 22, -1044525330),
        t = i(t, a, o, l, e[u + 4], 7, -176418897),
        l = i(l, t, a, o, e[u + 5], 12, 1200080426),
        o = i(o, l, t, a, e[u + 6], 17, -1473231341),
        a = i(a, o, l, t, e[u + 7], 22, -45705983),
        t = i(t, a, o, l, e[u + 8], 7, 1770035416),
        l = i(l, t, a, o, e[u + 9], 12, -1958414417),
        o = i(o, l, t, a, e[u + 10], 17, -42063),
        a = i(a, o, l, t, e[u + 11], 22, -1990404162),
        t = i(t, a, o, l, e[u + 12], 7, 1804603682),
        l = i(l, t, a, o, e[u + 13], 12, -40341101),
        o = i(o, l, t, a, e[u + 14], 17, -1502002290),
        a = i(a, o, l, t, e[u + 15], 22, 1236535329),
        t = r(t, a, o, l, e[u + 1], 5, -165796510),
        l = r(l, t, a, o, e[u + 6], 9, -1069501632),
        o = r(o, l, t, a, e[u + 11], 14, 643717713),
        a = r(a, o, l, t, e[u + 0], 20, -373897302),
        t = r(t, a, o, l, e[u + 5], 5, -701558691),
        l = r(l, t, a, o, e[u + 10], 9, 38016083),
        o = r(o, l, t, a, e[u + 15], 14, -660478335),
        a = r(a, o, l, t, e[u + 4], 20, -405537848),
        t = r(t, a, o, l, e[u + 9], 5, 568446438),
        l = r(l, t, a, o, e[u + 14], 9, -1019803690),
        o = r(o, l, t, a, e[u + 3], 14, -187363961),
        a = r(a, o, l, t, e[u + 8], 20, 1163531501),
        t = r(t, a, o, l, e[u + 13], 5, -1444681467),
        l = r(l, t, a, o, e[u + 2], 9, -51403784),
        o = r(o, l, t, a, e[u + 7], 14, 1735328473),
        a = r(a, o, l, t, e[u + 12], 20, -1926607734),
        t = s(t, a, o, l, e[u + 5], 4, -378558),
        l = s(l, t, a, o, e[u + 8], 11, -2022574463),
        o = s(o, l, t, a, e[u + 11], 16, 1839030562),
        a = s(a, o, l, t, e[u + 14], 23, -35309556),
        t = s(t, a, o, l, e[u + 1], 4, -1530992060),
        l = s(l, t, a, o, e[u + 4], 11, 1272893353),
        o = s(o, l, t, a, e[u + 7], 16, -155497632),
        a = s(a, o, l, t, e[u + 10], 23, -1094730640),
        t = s(t, a, o, l, e[u + 13], 4, 681279174),
        l = s(l, t, a, o, e[u + 0], 11, -358537222),
        o = s(o, l, t, a, e[u + 3], 16, -722521979),
        a = s(a, o, l, t, e[u + 6], 23, 76029189),
        t = s(t, a, o, l, e[u + 9], 4, -640364487),
        l = s(l, t, a, o, e[u + 12], 11, -421815835),
        o = s(o, l, t, a, e[u + 15], 16, 530742520),
        a = s(a, o, l, t, e[u + 2], 23, -995338651),
        t = c(t, a, o, l, e[u + 0], 6, -198630844),
        l = c(l, t, a, o, e[u + 7], 10, 1126891415),
        o = c(o, l, t, a, e[u + 14], 15, -1416354905),
        a = c(a, o, l, t, e[u + 5], 21, -57434055),
        t = c(t, a, o, l, e[u + 12], 6, 1700485571),
        l = c(l, t, a, o, e[u + 3], 10, -1894986606),
        o = c(o, l, t, a, e[u + 10], 15, -1051523),
        a = c(a, o, l, t, e[u + 1], 21, -2054922799),
        t = c(t, a, o, l, e[u + 8], 6, 1873313359),
        l = c(l, t, a, o, e[u + 15], 10, -30611744),
        o = c(o, l, t, a, e[u + 6], 15, -1560198380),
        a = c(a, o, l, t, e[u + 13], 21, 1309151649),
        t = c(t, a, o, l, e[u + 4], 6, -145523070),
        l = c(l, t, a, o, e[u + 11], 10, -1120210379),
        o = c(o, l, t, a, e[u + 2], 15, 718787259),
        a = c(a, o, l, t, e[u + 9], 21, -343485551),
        t = n(t, d),
        a = n(a, p),
        o = n(o, A),
        l = n(l, m)
    }
    return [t, a, o, l]
};
function u(e) {
    for (var t = "0123456789abcdef", n = "", a = 0; a < 4 * e.length; a++)
        n += t.charAt(e[a >> 2] >> a % 4 * 8 + 4 & 15) + t.charAt(e[a >> 2] >> a % 4 * 8 & 15);
    return n
};
function d(e) {
    for (var t = 1 + (e.length + 8 >> 6), n = new Array(16 * t), a = 0; a < 16 * t; a++)
        n[a] = 0;
    for (a = 0; a < e.length; a++)
        n[a >> 2] |= (255 & e.charCodeAt(a)) << a % 4 * 8;
    return n[a >> 2] |= 128 << a % 4 * 8,
    n[16 * t - 2] = 8 * e.length,
    n
};
function p(e) {
return u(l(d(e)))
};


const z = e=>{
    let t = ["`", "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "+", "=", "|", "{", "}", "'", ":", ";", "'", ",", "[", "]", ".", "<", ">", "/", "?", "~", "！", "@", "#", "￥", "%", "…", "…", "&", "*", "（", "）", "—", "—", "+", "|", "{", "}", "【", "】", "‘", "；", "：", "”", "“", "’", "。", "，", "、", "？", '"']
      , n = ["content", "practicePurpose", "practiceContent", "practiceRequirement", "otherRequirement", "practiceDescript", "securityBook", "responsibilities", "selfAppraisal", "file"];
    for (var a in e) {
        //!(过滤的字段 ||  特殊字符）不添加到字符串中
        let o = e[a] + "";
        o && o.split("").some(((e,o)=>{
            if (t.indexOf(e) > -1)
                return -1 == n.indexOf(a) && n.push(a),
                !0
        }
        ))
    }
    return n
};
const W = e=>{
    if (void 0 == e)
        return {};
    for (var t = Object.keys(e).sort(), n = {}, a = 0; a < t.length; a++)
        n[t[a]] = e[t[a]];
    return n
};
const F = (e,t)=>{
    var n, a, o = e.slice(0), i = e.length, r = i - t;
    while (i-- > r)
        a = Math.floor((i + 1) * Math.random()),
        n = o[a],
        o[a] = o[i],
        o[i] = n;
    return o.slice(r)
};
export function H(e,t){
    let n = ["5", "b", "f", "A", "J", "Q", "g", "a", "l", "p", "s", "q", "H", "4", "L", "Q", "g", "1", "6", "Q", "Z", "v", "w", "b", "c", "e", "2", "2", "m", "l", "E", "g", "G", "H", "I", "r", "o", "s", "d", "5", "7", "x", "t", "J", "S", "T", "F", "v", "w", "4", "8", "9", "0", "K", "E", "3", "4", "0", "m", "r", "i", "n"]
      , a = [];
    for (let u = 0; u < 62; u++)
        a.push(u + "");
    let o = Math.round((new Date).getTime() / 1e3)
      , i = F(a, 20)
      , r = "";
    i.forEach(((e,t)=>{
        r += n[e]
    }
    ));
    let s = W(e);
    var c = "";
    const V=/[`~!@#$%^&*()+=|{}':;',\[\].<>/?~！@#￥%……&*（）——+|{}【】‘；：”“’。，、？]/
    for (var l in s)
        //!(过滤的字段 ||  特殊字符）不添加到字符串中  过滤 &nbsp;
        -1 != z(e).indexOf(l) || V.test(s[l]) || null != s[l] && "" !== s[l] && '""' !== s[l] && (c += s[l]);
    return c += o,
    c += r,
    c = c.replace(/\s+/g, ""),
    c = c.replace(/\n+/g, ""),
    c = c.replace(/\r+/g, ""),
    c = c.replace(/</g, ""),
    c = c.replace(/>/g, ""),
    c = c.replace(/&/g, ""),
    c = c.replace(/-/g, ""),
    c = c.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g, ""),
    c = encodeURIComponent(c),
    c = p(c),
    {
        md5: c,
        tstr: o,
        iArrStr: i && i.length > 0 ? i.join("_") : ""
    }
};
